package com.aegis.manage.api.request;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import java.io.Serializable;

/**
 * @Author renogo
 * 
 * @Version 1.0
 * @Descritube
 */
@Data
public class AddPermissionRequest implements Serializable {

    /**
     * 权限key
     */
    @ApiModelProperty(value = "权限key", required = true)
    @NotBlank(message = "缺少权限key")
    private String permission;
    /**
     * 权限名称
     */
    @ApiModelProperty(value = "权限key", required = true)
    @NotBlank(message = "缺少权限名称")
    private String permissionName;
    /**
     * api地址
     */
    @ApiModelProperty(value = "权限api地址", required = true)
    @NotBlank(message = "缺少api地址")
    private String api;


}
